
					<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
					<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
					<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
					<div class="post">
						<h2 class="title"><fmt:message key="locanet.funcionario.busca.titulo"/></h2>
						<form action="funcionario@select.action">
							<table>
								<tr><td><fmt:message key="locanet.pessoa.nome"/></td><td><input maxlength="100" type="text" name="entity.nome" value="<c:out value="${param['entity.nome']}"/>"/></td></tr>
								<tr><td><fmt:message key="locanet.pessoa.login"/></td><td><input maxlength="20" type="text" name="entity.login" value="<c:out value="${param['entity.login']}"/>"/></td></tr>
								<tr><td><fmt:message key="locanet.status"/></td><td>
									<input type="radio" name="entity.status" value="1" <c:out value="${(!empty param['entity.status'])?param['entity.status']==1?'checked':'':'checked'}" /> /><fmt:message key="locanet.entidades.status.ativo"/>
									<input type="radio" name="entity.status" value="0" <c:out value="${(!empty param['entity.status'])?param['entity.status']==0?'checked':'':''}" />/><fmt:message key="locanet.entidades.status.inativo"/>
								</td></tr>
								<tr><td><input type="submit" value="Buscar" /></td><td><a class="button" href="funcionario@insert.action"><fmt:message key="locanet.butoes.inserir"/></a></td></tr>
							</table>
						</form>
					</div>
					<div class="post">
						<table>
							<tr><th></th><th></th><th><fmt:message key="locanet.pessoa.nome"/></th><th><fmt:message key="locanet.pessoa.login"/></th><th><fmt:message key="locanet.status"/></th></tr>
							<%@page import="br.com.locanet.bean.impl.Funcionario"%>
						<c:choose>
						  <c:when test="${!empty requestScope.entities}">
						    <c:forEach items="${requestScope.entities}" var="f">
						        <tr><td>
									<a href="funcionario@update.action?entity.id=${f.id}"  class="button"><fmt:message key="locanet.entidades.lista.editar"/></a>
								</td><td>
									<a href="funcionario@delete.action?entity.id=${f.id}"  class="button"><fmt:message key="locanet.entidades.lista.excluir"/></a>
								</td><td>
									<c:out value="${f.nome}"/>
								</td><td>
									<c:out value="${f.login}"/>
								</td><td>
									<c:if test="${f.status==1}"><font color="green"><fmt:message key="locanet.entidades.status.ativo" /></font></c:if>
								    <c:if test="${f.status==0}"><font color="red"><fmt:message key="locanet.entidades.status.inativo" /></font></c:if>
								</td></tr>
						    </c:forEach>
						    <tr><td colspan="100%" style="text-align:center">
						    	<c:out value="${requestScope.totalPagingResults}" /><fmt:message key="locanet.entidades.lista.resultados.achado"/><br/>
							    <div class="pagination"><c:forEach begin="1" end="${requestScope.totalPagingResults/10+((requestScope.totalPagingResults%10!=0)?1:0)}" var="cont">
							    	<a <c:if test="${ empty param.page&&cont==1||!empty param.page&&param.page==cont }">class="current"</c:if> href="funcionario@select.action?entity.nome=${param['entity.nome']}&entity.login=${param['entity.login']}&entity.status=${param['entity.status']}&page=${cont}"><c:out value="${cont}" /></a>
							    </c:forEach></div>
						    </td></tr>
						  </c:when>
						  <c:otherwise>
						  	<tr><td colspan="100%"><fmt:message key="locanet.entidades.lista.resultados.naoachado"/></td></tr>
						  </c:otherwise>
						</c:choose>
						</table>
					</div>
					